#include<iostream>
#include<conio.h>
#include<stdio.h>

using namespace std;

class A
{
private:
	int x;
protected:
	int y;
public:
	int z;
	void printf();
};
void CPolygon::print()
{
	cout << x;
	cout << y;
	cout << z;
}
class B: public A
{
public:
	int print();
};
void CPolygon::print()
{
	cout << x;
	cout << y;
	cout << z;
}

int main()
{
	A ma;
	cout<< ma.x<< endl;
	cout<< ma.y<< endl;
	cout <<ma.z<<endl;
	getch();
	return 0;
}
